<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="/assets/js/jquery.min.js"></script>
</head>
<body>
<button onclick="send()">send</button>
<script>
    var socket = new WebSocket("ws://localhost:8080/admin/socket/comment/jack");
    socket.onmessage = function (ev) {
        console.log(ev.data);
    }
    function send() {
        var unreadCount =  $.get("/comment/unread/count");
        console.log(unreadCount);
    }
</script>
</body>
</html>